AC_INIT(riskcommon, 0.1, gsenno at gmail.com)
AM_INIT_AUTOMAKE([-Wall -Werror foreign])

AC_PROG_CXX
AC_PROG_CC
AC_PROG_RANLIB


AC_CHECK_PROG(HAVE_PKG_CONFIG, pkg-config, yes)

# Checks for libraries.

dnl Si pkg-config existe, lo uso para compilar con soporte para gtkmm.

if test "x$HAVE_PKG_CONFIG" = "xyes"
	then
 	    PKG_CHECK_MODULES(PACKAGE,
 	    gtk+-2.0 \
 	    gthread-2.0 \
 	    gtkmm-2.4 \
 	    libxml++-2.6 \
 	    gtkglextmm-1.2)
		AC_SUBST(PACKAGE_CFLAGS)
		AC_SUBST(PACKAGE_LIBS)
fi

AC_OUTPUT([
Makefile
src/Makefile
])